using UnityEngine;
using System.Collections;

public class TimeBar : MonoBehaviour {
	
	public		int		m_Width		 = 100;
	
	private float 		m_Next		 = 0.0f;
	private float 		m_Period	 = 0.1f;
	
	void Start ()
	{
	}
	
	void Update ()
	{
	    if (Time.time > m_Next)
		{
	    	m_Next += m_Period;
			m_Width--;
				
			if (m_Width < 0)
				m_Width = 0;
	    }	
	}
}
